import axios from "axios";

// 登录接口
export function myLogin(data) {
    return(
    axios({
        method: "post",
        url: 'api/page/admin/login',
        data,
        headers: {
            token:''
        }
    })
    )
}
//  侧边栏列表数据
export function getSidelist() { 
    return (
        axios.get('api/page/admin/menu/list')
    )
}
// 获取所有路由
export function getRouterList() {
    return (
        axios({
            method: "get",
            url:'api/page/admin/menu/listAll'
        })
    )
}